package com.hgw.Demo03_AbstractFactory.Exercises5_8_4;

/**
 * Data time:2021/12/13 11:32
 * StudentID:2019112118
 * Author:hgw
 * Description:
 */
public class Client {

    public static void main(String[] args) {
        Television tv ;
        AirConditioner ac;
        ElectricalFactory factory = new HaierFactory();
        tv = factory.createTV();
        ac = factory.createAC();

        System.out.println(tv.getName());
        System.out.println(ac.getName());
    }
}
